package com.chagee.store.operation.common.enums;

import com.chagee.store.operation.api.enums.OrderAcceptanceTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * @Author : hk
 * @Date : 2025/2/8
 */

@Getter
@AllArgsConstructor
public enum MassageTypeEnum {

	ORDER_APPEAL("ORDER_APPEAL", "订单申诉"),

	TASK_APPEAL("TASK_APPEAL", "任务申诉"),

	;

	private final String type;
	private final String desc;


	public static MassageTypeEnum queryByType(String type) {
		for (MassageTypeEnum value : values()) {
			if (Objects.equals(type, value.getType())) {
				return value;
			}
		}
		return null;
	}
}
